import java.util.ArrayList;

public class Bill {
	ArrayList<Item> itemList;
	String text;
	public Bill() {
		itemList = new ArrayList<Item>();
	}


	public void addItem(int itemCode, String itemName, int itemPrice) {
		itemList.add(new Item(itemCode,itemName,itemPrice));
	}

	public String generateBill() {
		String s="";
		for(Item i:itemList) {
			s=s+i+"\n";
		}

		return s;
	}
}
